package com.cskaoyan.mapper.wxMapper;

import com.cskaoyan.bean.po.wxPo.MarketOrder;
import com.cskaoyan.bean.po.wxPo.MarketOrderExample;
import com.cskaoyan.bean.vo.vxVo.OrderListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketOrderMapper {
    long countByExample(MarketOrderExample example);

    int deleteByExample(MarketOrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketOrder record);

    int insertSelective(MarketOrder record);

    List<MarketOrder> selectByExample(MarketOrderExample example);

    MarketOrder selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketOrder record, @Param("example") MarketOrderExample example);

    int updateByExample(@Param("record") MarketOrder record, @Param("example") MarketOrderExample example);

    int updateByPrimaryKeySelective(MarketOrder record);

    int updateByPrimaryKey(MarketOrder record);

    Integer selectUncommentByUserId(@Param("id") Integer id);

    List<OrderListVO> selectByShowType(@Param("showType") Integer showType,@Param("userId") Integer userId);

    int updateOrderStatus(@Param("orderId") Integer orderId,@Param("statusId") Integer statusId);

    int updateOrderDeleted(Integer orderId);

}